package thread.my_thread2;


//多线程的第二种实现方式：实现Runnable接口
public class MyThread2 implements Runnable{


    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            //获取当前线程的对象
            Thread thread = Thread.currentThread();
            System.out.println(thread.getName()+"......hello word");

        }
    }
}
